import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/questionoption/` + url, ...arg)

/**
 * 试题选项Api接口管理器
 *
 * @author lrw
 * @date  2025/10/04 09:47
 **/
export default {
	// 获取试题选项分页
	exmQuestionOptionPage(data) {
		return request('page', data, 'get')
	},
	// 提交试题选项表单 edit为true时为编辑，默认为新增
	exmQuestionOptionSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除试题选项
	exmQuestionOptionDelete(data) {
		return request('delete', data)
	},
	// 获取试题选项详情
	exmQuestionOptionDetail(data) {
		return request('detail', data, 'get')
	}
}
